package com.xiaomi.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

//用户表
public class User implements Serializable {

    private int uid;//用户表id
    private String pnumber;//用户手机号账户
    private String uname;//用户名
    private String password;//密码
    private String imagepath;//头像图片名称地址
    private String sex;//性别
    private String birthday;//生日
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date login_time; //最近登陆时间
    private int frozen; //是否被冻结 0 没有 1 被冻结

    public Date getLogin_time() {
        return login_time;
    }

    public void setLogin_time(Date login_time) {
        this.login_time = login_time;
    }

    public int getFrozen() {
        return frozen;
    }

    public void setFrozen(int frozen) {
        this.frozen = frozen;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getPnumber() {
        return pnumber;
    }

    public void setPnumber(String pnumber) {
        this.pnumber = pnumber;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getImagepath() {
        return imagepath;
    }

    public void setImagepath(String imagepath) {
        this.imagepath = imagepath;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    @Override
    public String toString() {
        return "User{" +
                "uid=" + uid +
                ", pnumber='" + pnumber + '\'' +
                ", uname='" + uname + '\'' +
                ", password='" + password + '\'' +
                ", imagepath='" + imagepath + '\'' +
                ", sex='" + sex + '\'' +
                ", birthday='" + birthday + '\'' +
                '}';
    }
}
